package com.vrv.drools.droolsdemo.controller;

import com.vrv.drools.droolsdemo.service.TestService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName: TestController
 * @Desc: TODO
 * @author: <Bang>
 * @Date: 2022/08/23 11:32
 * @Version: 1.0
 * @Modified By:
 */
@Api(tags = "首页模块")
@RestController
public class TestController {

    @Resource
    private TestService testService;

    @ApiImplicitParam(name = "name",value = "姓名",required = false)
    @ApiOperation(value = "向客人问好")
    @GetMapping("/test")
    public Object test(String name){
        return testService.test(name);
    }

    @ApiImplicitParam(name = "name",value = "姓名",required = false)
    @ApiOperation(value = "向客人问好")
    @GetMapping("/test2")
    public Object test2(String name){
        return testService.test2(name);
    }
}
